package org.jeecg.modules.wms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Description: 采购单明细表
 * @Author: jeecg-boot
 * @Date: 2023-07-17
 * @Version: V1.0
 */
@Data
@TableName("wms_purchase_order_detail")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="wms_purchase_order_detail对象", description="采购单明细表")
public class WmsPurchaseOrderDetail implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;

    /**
     * 采购单ID
     */
    @ApiModelProperty(value = "采购单ID")
    private String purchaseOrderId;

    /**
     * 物料Id
     */
    @ApiModelProperty(value = "物料Id")
    private String materialId;

    /**
     * 物料编码
     */
    @Excel(name = "物料编码", width = 15)
    @ApiModelProperty(value = "物料编码")
    private String materialCode;

    /**
     * 物料名称
     */
    @Excel(name = "物料名称", width = 15)
    @ApiModelProperty(value = "物料名称")
    private String materialName;

    /**
     * 物料类型
     */
    @Excel(name = "物料类型", width = 15, dicCode = "material_type")
    @ApiModelProperty(value = "物料类型")
    private Integer materialType;
    
    /**
     * 物料图片
     */
    @ApiModelProperty(value = "物料图片")
    private String materialImage;

    /**
     * 规格型号
     */
    @Excel(name = "规格型号", width = 15)
    @ApiModelProperty(value = "规格型号")
    private String specification;

    /**
     * 单位
     */
    @Excel(name = "单位", width = 15)
    @ApiModelProperty(value = "单位")
    private String unit;

    /**
     * 采购数量
     */
    @Excel(name = "采购数量", width = 15)
    @ApiModelProperty(value = "采购数量")
    private BigDecimal quantity;

    /**
     * 单价
     */
    @Excel(name = "单价", width = 15)
    @ApiModelProperty(value = "单价")
    private BigDecimal unitPrice;

    /**
     * 金额
     */
    @Excel(name = "金额", width = 15)
    @ApiModelProperty(value = "金额")
    private BigDecimal amount;

    /**
     * 已入库数量
     */
    @Excel(name = "已入库数量", width = 15)
    @ApiModelProperty(value = "已入库数量")
    private BigDecimal receivedQuantity;
    
    /**
     * 供应商ID
     */
    @Excel(name = "供应商ID", width = 15)
    @ApiModelProperty(value = "供应商ID")
    private String supplierId;
    
    /**
     * 供应商名称
     */
    @Excel(name = "供应商名称", width = 15)
    @ApiModelProperty(value = "供应商名称")
    private String supplierName;
    
    /**
     * 交货周期(天)
     */
    @Excel(name = "交货周期(天)", width = 15)
    @ApiModelProperty(value = "交货周期(天)")
    private Integer leadTime;

    /**
     * 备注
     */
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
} 